package com.lechuang.songbo.presenter.net.netApi;

import com.lechuang.songbo.model.bean.GetBean;
import com.lechuang.songbo.model.bean.HomeSearchResultBean;
import com.lechuang.songbo.model.bean.ResultBean;
import com.lechuang.songbo.presenter.net.QUrl;

import java.util.HashMap;

import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;
import rx.Observable;

/**
 * @author yrj
 * @date   2017/10/20
 * @E-mail 1422947831@qq.com
 * @desc   疯抢榜接口
 */

public interface CrazyRobApi {

    /**
     *
     *
     * 疯抢榜接口
     *                    入参   page  分页    classTypeId  分类id
     *
     */
    @FormUrlEncoded
    @POST(QUrl.home_product)
    Observable<ResultBean<HomeSearchResultBean>> searchResult(@FieldMap HashMap<String, String> allParamMap);

    /**
     * 首页最下栏目 标题数据
     * @return
     */
    @POST(QUrl.getTopTabList)
    Observable<ResultBean<GetBean>> tabList();
}
